import { createRouter, createWebHistory, type RouteRecordRaw } from "vue-router"

import Home from "@/views/Home.vue"

const routes: Array<RouteRecordRaw> = [
  { path: "/", redirect: "/home" },
  {
    path: "/home",
    name: "home",
    component: Home
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
